*** Settings ***
Resource          业务关键字.robot
Library           RequestsLibrary
Library           Collections

*** Test Cases ***
testSelectAll
    Create Session    api    ${url}:${port}
    ${result}    GET On Session    api    url=/selectAll
    Dictionary Should Contain Key    ${result.json()}    code
    log    ${result.json().get("code")}
    Should Be Equal    ${result.json().get("code")}    ${200}

testSelectOne
    [Template]    selectOne
    123456
    234567
    201901020239
    201901020238
    201901020241
    4654654

testAdd
    [Template]    Add
    123456    a碟    18
    234567    b碟    19
    201901020241    欧阳亨杰    20
    201901020238    e碟    21
    123456    d碟    23
    201901020241    aa    18
    4654654    e碟    23
    123456    f碟    20

testModify
    [Template]    modify
    201901020241    欧阳亨杰    18
    201901020238    修改一下    21
    123456    能不能修改    23
    201901020241    123    18
    1    1

testDelete
    [Template]    delete
    123456
    201901020238
    234567
    1234
    201901020241
    456
